package cn.ludi.mapper;

import cn.ludi.entity.Role;
import cn.ludi.entity.UserRole;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    UserRole selectByUserId(@Param("ew") QueryWrapper<UserRole> queryWrapper, Long roleId);


    List<String> selectRoleByUserId(Long userId);
}
